using ViScript.Core.Utils;

namespace ViScript.Core.Utils
{
    public class Text : IText
    {
        private readonly string text;
        private readonly bool isEscaped;

        public Text(string text, bool isEscaped)
        {
            this.text = text;
            this.isEscaped = isEscaped;
        }

        public bool IsEscaped
        {
            get { return isEscaped; }
        }

        public override string ToString()
        {
            return text;
        }
    }
}